package io.github.kimmking.kkconfig.server.dal;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * Description for this class.
 *
 * @Author : kimmking(kimmking@apache.org)
 * @create 2024/1/24 13:33
 */

@Repository
@Mapper
public interface LocksMapper {

    @Select("set innodb_lock_wait_timeout=5")
    void waitTime();

    @Select("select app from locks where id = 1 for update")
    String selectForUpdate();

}
